/**************************************************************
  > File Name: 633.c
  > Author: LuoLiang
  > Mail: 1204553475@qq.com 
  > Created Time: 2022年02月12日 星期六 09时17分56秒
 **************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>

bool judgeSquareSum(int c)
{
	long left = 0;
	long right = (int)sqrt(c);

	while (left <= right)
	{
		if ((left * left + right * right) == c)
			return true;
		if ((left * left + right * right) < c)
			left++;
		else
			right--;
	}
	return false;
}

int main(int argc, char **argv)
{
	int num;
	int ret;
	
	scanf("%d",&num);	
	ret = judgeSquareSum(num);
	if (ret)
		printf("true\n");
	else
		printf("flase\n");

    exit(0);
}
